package categorymodel

import "stores"

func GetCategoryList() []Category {
	var categorys []Category
	d := stores.DB.Self.Find(&categorys)
	if d.Error != nil {
		return nil
	}
	return categorys
}
